LIST  -  send messages to a file or to a shell command

Usage:  LIST [/switch] filename [message-sequence]
   or:  LIST [/switch] |"shell-command" [message-sequence]
  Unless specified, the message-sequence is "current".

The LIST command copies the message(s) to a file or to a shell command.
  The result contains a table of contents (like a HEADERS command) for the
  message(s), then a page break, then the message(s).  You may specify 
  one of two /switches, as options:
    /headers-only: print only the header (like a HEADERS command).
    /separate-pages: put page breaks between messages.

The command LITERAL LIST will print all header fields regardless of settings
  of DONT-PRINT-HEADERS or ONLY-PRINT-HEADERS.  SET LIST-ON-SEPARATE-PAGES
  YES is the same as using /separate-pages every time.  SET LIST-INCLUDE-
  HEADERS NO will eliminate the table of contents on the first page of output.

The file created with LIST is not a mail file readable by MM (use COPY or
  MOVE to create a mail file).  LIST does not append to existing files,
  so if you use the name of an existing file you will be replacing it.
  
The first version of the LIST command sends the messages to a file.  

    MM>list joe 14			#sends message 14 to a file "joe"
    MM>list /headers-only hdrs all	#sends only the headers, of all
       		                         messages, to a file called "hdrs"

The second version of the LIST command is similar, but sends the messages 
  as input to a shell command.  Use the unix pipe symbol (|) and put 
  quotation marks (") around the shell command.  For example, one way of 
  printing a message is to LIST it to a print command:

    MM>list | "print" 14		#sends message 14 to the
       		                         shell command "print"

For more help, type "help" and one of these topics:
  message-sequence   literal   print   copy   move   other
  set dont-print-headers   set only-print-headers
  set list-on-separate-pages   set list-include-headers
